﻿#include "TestThread.h"
#include <iostream>
#include <string>

//这里没有显示调用父类的构造函数，编译器会隐式调用父类的默认构造函数
TestThread::TestThread(void)
{
    m_nRunCount = 0;
}


TestThread::~TestThread(void)
{
}

void TestThread::Run()
{
    while(true)
    {
        std::cout<<"debug 011 : Run "<<m_nRunCount<<std::endl;
        SleepMill(1000);
        m_nRunCount++;

        if(10 == m_nRunCount)
        {
            this->Wait(5000);
        }
    }
}
